package com.mytijian.openapi.adapter.dianping.exceptions;

import com.mytijian.exception.ErrorInfo;

public enum DzopenErrorInfo implements ErrorInfo {
	 
	ERROR("501", "请求错误"),
	//ORDER_BOOK_("1515", "请求的时间不在商户可接受范围内"),
	
	SIGN_ERROR("623", "签名错误"),
	/**
	 * 人数不足
	 */
	ORDER_BOOK_COUNTER_LIMIT("1516", "商户库存已售光"),
	//ORDER_BOOK_("1517", "超出可预订时间范围"),
	//ORDER_BOOK_("1518", "请求的包房类型无效"),
	/**
	 * 订单号重复
	 */
	ORDER_BOOK_DUPLICATE_ORDER_ID("1519", "订单号重复，同一个订单号预订信息不一致"),
	//ORDER_BOOK_ILLEGAL_TIME_PERIOD_ID("1520", "预订时间间隔不合法"),
	/**
	 * 获取人数信息失败
	 */
	ORDER_BOOK_ILLEGAL_TIME_PERIOD("1521", "无法获取该包型的库存信息"),
	ORDER_BOOK_UNKNOW("1522", "预订失败，请稍后再试"),
	
	ORDER_QUERY_NOT_FOUND("1560","订单不存在"),
	
	ORDER_QUERY_ERROR("1561","请稍后再试"),
	
	ORDER_CANCEL_NOT_FOUND("1531", "订单不存在。"),
	ORDER_CANCEL_CONSUMED("1532", "订单已到店消费，或已导入体检中心内网。无法取消。"),
	ORDER_CANCEL_UNKNOW("1533", "取消失败，请稍后再试。"),
	
	ORDER_MODIFY_ORDER_NOT_FOUND("1570", "请求的订单不存在"),
	ORDER_MODIFY_CONSUMED("1571", "已到店消费，无法修改"),
	ORDER_MODIFY_UNKNOW("1572", "系统错误，修改失败");
	
	private String errorCode;
	private String errorMsg;

	public String getErrorCode() {
		return errorCode;
	}

    /**
     * 获取异常信息
     * 
     * @return
     */
    public String getErrorMsg() {
    		return errorMsg;
    }
    
    DzopenErrorInfo(String errorCode, String errorMsg) {
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}
}
